
	#include<stdio.h>
	#include<conio.h>

	void main()
	{
	   int a[5], b[5];

	   clrscr();

	   printf("\n Enter 5 nos : ");
	   for(int i = 0;i < 5;i ++)
	    scanf("%d", &a[i]);

	   for(i = 0;i < 5;i ++)
	    for(int j = 0;j < 4 - i;j ++)
	     {
	       if(a[j] > a[j + 1])
	       {
	       int temp = a[j];
	       a[j] = a[j + 1];
	       a[j + 1] = temp;
	       }
	     }

	   int count = 0;
	   b[count] = a[0];
	   j = 0;

	   for(i = 0;i < 5;i ++)
	   {
	      b[count + 1] = 0;
	      if(b[count] != a[i])
	      {
		 count++;
		 b[count] = a[i];
		 printf("count:%d\tb[count]:%d\ta[i]%d\n", count + 1, b[count], a[i]);

	      }

	   }

	   printf("\n Array without repetition is : ");
	   for(i = 0;i <=count; i++)
	    printf("%d\t", b[i]);


	   getch();
	}